import request from '@/utils/request'

// 查询资金来源列表
export function listSource(query) {
  return request({
    url: '/funding/source/list',
    method: 'get',
    params: query
  })
}

// 查询资金来源详细
export function getSource(sourceId) {
  return request({
    url: '/funding/source/' + sourceId,
    method: 'get'
  })
}

// 新增资金来源
export function addSource(data) {
  return request({
    url: '/funding/source',
    method: 'post',
    data: data
  })
}

// 修改资金来源
export function updateSource(data) {
  return request({
    url: '/funding/source',
    method: 'put',
    data: data
  })
}

// 删除资金来源
export function delSource(sourceId) {
  return request({
    url: '/funding/source/' + sourceId,
    method: 'delete'
  })
}

// 获取所有资金来源信息
export function getAllSource() {
  return request({
    url: '/funding/source/getAllSource',
    method: 'get'
  })
}